<template>
  <div class="main-header">
    <div class="left" @click="handleExpand">
      <el-icon size="35px">
        <component :is="isExpand ? 'Expand' : 'Fold'" />
      </el-icon>
    </div>
    <div class="content">
      <Breadcrumb></Breadcrumb>
      <usershow></usershow>
    </div>
  </div>
</template>

<script lang="ts" setup>
import usershow from './userInfo.vue'
import Breadcrumb from './c-breadcrumb.vue'
import { ref } from 'vue'
const isExpand = ref(true)

const $emit = defineEmits(['resolveExpand'])

function handleExpand() {
  isExpand.value = !isExpand.value
  $emit('resolveExpand', isExpand.value)
}
</script>

<style scoped lang="scss">
.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  .content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-left: 10px;

    .breadcrumb {
      font-size: 18px;
    }
  }
}
</style>
